package kr.hkit.powerjava.chapter10;

import javax.swing.JOptionPane;

public class ArrayTest1 {
	public static void main(String[] args) {
		final int STUDENTS = 5;
		int total = 0;

		int[] arrScores = new int[STUDENTS];
		System.out.println(arrScores.length);

		for (int i = 0; i < arrScores.length; i++) {
			arrScores[i] = Integer.parseInt(JOptionPane
					.showInputDialog("정수를 입력하시오."));
		}	
		int [] arr = {1,2,3,4,5,6,7,8,9};
		System.out.println(arr.length);
		for(int i : arr){
		System.out.printf("%3d",i);	
		}
		
	
	
	}
	
}
